import { Global, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DbService, DbEntityList } from "./db.service"


@Global()
@Module({
  imports: [TypeOrmModule.forFeature([...DbEntityList])],
  providers: [DbService],
  exports: [DbService],
})
export class DbModule {}